package com.qinsheng.domain.award.model.entity;

import com.qinsheng.domain.award.event.SendAwardMessageEvent;
import com.qinsheng.domain.award.model.valobj.TaskStateVO;
import com.qinsheng.types.event.BaseEvent;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * ClassName: TaskEntity
 * Description: 任务实体对象
 *
 * @Author: qinsheng1900
 * @Create 2025/3/14 20:07
 * @Version 1.0
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TaskEntity {
    private String userId;
    private String topic;
    private String messageId;
    /**
     * 消息主体
     */
    private BaseEvent.EventMessage<SendAwardMessageEvent.SendAwardMessage> message;
    /**
     * 消息状态，create,completed,fail
     */
    private TaskStateVO state;
}
